# -*- coding: utf-8 -*-
"""
summary:
    博客 form
license:
    GNU General Public License v3 <http://www.gnu.org/licenses/gpl.html>
authors:
    Jason Lee <huacnlee@gmail.com>
"""

from django import forms

class CommentForm(forms.Form):
    """
    summary:
        评论表单
    """
    name = forms.CharField(label='大名',initial='匿名网友',max_length=20,widget=forms.TextInput(attrs={'class':'text name'}))
    url = forms.URLField(label='博客',initial='http://',required=False,widget=forms.TextInput(attrs={'class':'text url'}))
    email = forms.EmailField(label='Email',required=False,widget=forms.TextInput(attrs={'class':'text email'}))
    body = forms.CharField(label="内容",max_length=1000,widget=forms.Textarea(attrs={'class':'text body'}))
